<template>
    <div>
        <el-button @click="fh">返回</el-button>
        <br>
        <el-image
                style="width: 500px; height: 500px"
                :src="newphonePath"
                fit="'fill', 'contain', 'cover', 'none', 'scale-down'"></el-image>

    </div>
</template>

<script>
    export default {
        name: "Photo",
        props:['phonePath'],
        data(){
            return{
                newphonePath:this.phonePath
            }
        },
        watch:{
            phonePath:function () {
                this.newphonePath=this.phonePath
            }
        },
        methods:{
            fh(){
                this.$emit("fh")
            }
        }
    }
</script>

<style scoped>

</style>